package com.bonana.core.vo;

import com.bonana.core.result.Response;

import java.io.Serializable;

/**
 * Created by justin on 15/8/14.
 */
public class BaseVO implements Serializable {
    private Response result;
    private int resultCode;
    private String resultMsg;
    private long ts = System.currentTimeMillis();

    public int getResultCode() {
        return result == null ? null : result.getResultCode();
    }

    public String getResultMsg() {
        return result == null ? null : result.getResultMsg();
    }

    public long getTs() {
        return ts;
    }

    public void setTs(long ts) {
        this.ts = ts;
    }

    public Response getResult() {
        return result;
    }

    public void setResult(Response result) {
        this.result = result;
    }
}
